<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>demo4</title>
	<script type="text/javascript">
		document.write("<table border='1'>");
			for( i=9;i > 0;i--){
				document.write("<tr>");
				for(j =1;j<=i;j++){
					if(j%2!=0){
					document.write("<td style='background-color:red'>");
					document.write(j+"×"+i+"="+i*j);
					document.write("</td>");
					}else{
						if(i%2==0){
							document.write("<td style='background-color:#D4DBED'>");
					        document.write(j+"×"+i+"="+i*j);
							document.write("</td>");
						}else{
							document.write("<td style='background-color:blue'>");
							document.write(j+"×"+i+"="+i*j);
							document.write("</td>");
					}
					}

					
				}
				document.write("</tr>");
			}

		
		document.write("</table>");
		document.write("<hr>");
		for(x=0;x<=100;x+=2){
			document.write("&nbsp;"+x);
		}


		console.log("dd");
	</script>
</head>
<body>
<!-- #D4DBED	 -->
</body>
</html>